<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<div class="menu-main">
            <div class="menu-title">商品类目</div>
            <ul class="server-list">
                <c:forEach items="${categories }" var="c">
                <li>
                    <p class="menu-sub-title"><a>${c.name }</a></p>
                    <p class="menu-detail">
                        <c:forEach items="${c.children }" var="cc">
                        <a href="${ctx }/product/list?productCategory.id=${c.id}" target="_blank">${cc.name }</a>
                        </c:forEach>
                </li>
                </c:forEach>
            </ul>
        </div>
